package com.joysuch.wwyt.workflow.bean;

import com.joysuch.wwyt.workflow.enums.NodeTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class WorkFlowModelJsonBean implements Serializable {

    private String name;
    private String status_name;
    private String description;
    /**
     * 字段
     * [{ "key":"formObject",
     *    "value":"key_47f387824a21488d93cbdee5f4b9ef71",
     *    "label":"申请人",
     *    "diaType":"person"}]
     */
    private String assign;
    private String recordHistory;
    private String riskreeval;

    /**
     * 业务场景,eg: 作业证申请过后需要根据作业级别走不同的审批流程
     * 此字段规定下个节点(互斥网关)分流时取的当前组件key, param="一级"
     */
    @ApiModelProperty("下个节点(互斥网关)分流时取的当前组件key")
    private String flowkey;

    @ApiModelProperty("会签或签标识, 1 会签; 2 或签; 0 默认(即只能选一个组件)")
    private Integer countersign = 0;

    private NodeTypeEnum nodeType;
}
